package com.lorgeoux.android.parking.bean;

import java.math.BigDecimal;

import com.lorgeoux.android.parking.enums.EquipementsPublicMobilite;
import com.lorgeoux.android.parking.enums.TypeParking;

public class BeanInfoParkingTraite implements Comparable<BeanInfoParkingTraite> {

	private BeanInfoParking beanInfoParking;
	private EquipementsPublicMobilite equipementsPublicMobilite;
	private TypeParking typeParking;
	private BigDecimal distance;
	
	public BeanInfoParkingTraite() {
	}

	public BeanInfoParking getBeanInfoParking() {
		return beanInfoParking;
	}

	public void setBeanInfoParking(BeanInfoParking beanInfoParking) {
		this.beanInfoParking = beanInfoParking;
	}

	public EquipementsPublicMobilite getEquipementsPublicMobilite() {
		return equipementsPublicMobilite;
	}

	public void setEquipementsPublicMobilite(
			EquipementsPublicMobilite equipementsPublicMobilite) {
		this.equipementsPublicMobilite = equipementsPublicMobilite;
	}

	public TypeParking getTypeParking() {
		return typeParking;
	}

	public void setTypeParking(TypeParking typeParking) {
		this.typeParking = typeParking;
	}

	public BigDecimal getDistance() {
		return distance;
	}

	public void setDistance(BigDecimal distance) {
		this.distance = distance;
	}

	public int compareTo(BeanInfoParkingTraite otherBean) {
		if (this.getDistance() != null && otherBean.getDistance() != null) {
			return this.getDistance().compareTo(otherBean.getDistance());
		}
		return 0;
	}
}
